package com.gandong8.trace.biz.service.impl;

import com.gandong8.trace.biz.service.DemoProviderService;
import com.gandong8.trace.biz.service.DemoConsumerService;
import com.gandong8.trace.tool.annotation.Trace;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

@Service
public class DemoConsumerServiceImpl implements DemoConsumerService {
    @Reference(check = false) @Lazy
    private DemoProviderService demoProviderService;

    @Override
    @Trace
    public String hello() {
        return demoProviderService.hello();
    }
}
